package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 11111111111111111
 * 222拉取操作可以不断执行，前提是本地没有新代码，只要写了新代码，下一步操作一定是提交
 */
@FeignClient("auth-service")
public interface AuthClient {

    /**
     * 服务认证的处理器编写
     */
    @GetMapping("/authorization")
    public String appLogin(@RequestParam("id") Long id, @RequestParam("secret") String secret);

}
